# .server files installing
serverdir = $(libdir)/bonobo/servers
GoogleCalendarApplet.server: GoogleCalendarApplet.server.in Makefile
	sed -e  "s|\@LIBEXECDIR\@|$(pkglibdir)|"  $< > $@

server_DATA = GoogleCalendarApplet.server

# globals.py installing
globals.py: globals.py.in Makefile
	sed -e  "s|\@RESOURCES_DIR\@|$(pkgpythondir)|" \
		   -e  "s|\@SHARE_DIR\@|$(pkgdatadir)|" \
		   -e  "s|\@APPLET_DIR\@|$(pkglibdir)|" \
		   -e  "s|\@IMG_DIR\@|$(datadir)|" $< > $@
		   
# .glade files installing 
pkgdata_DATA = \
	calendar.glade \
	events.glade 
	
# applet script installing
pkglib_SCRIPTS = applet.py

# other .py files installing
moduledir = $(pkgpythondir)
module_PYTHON = \
	__init__.py \
	events.py \
	globals.py \
	auth.py

EXTRA_DIST = \
	GoogleCalendarApplet.server.in \
	applet.py \
	globals.py.in \
	$(pkgdata_DATA)

CLEANFILES = \
	$(server_DATA) \
	GoogleCalendarApplet.server \
	globals.py

BUILT_SOURCES = globals.py
